/**
 * 站内消息
 */
var _message = function() {
    
};
_message.prototype = {};

_message.prototype.popup = function() {
    $("#message_content").css("max-height", ($(window).height() - 120) + "px");

    var w = w || $(window).width();
    if (w > 300) w = 300;
    if (w > $("body").width()) w = $(window).width() - 40;
    $("#message").modal({
        width: w,
    });
}

window.Message = new _message();
